export function getRestTime(t) {
	let setTime = new Date(t)
	var now = new Date()
	let restTime = setTime.getTime() - now.getTime()


	const day = parseInt(restTime / (60 * 60 * 24 * 1000))
	const hour = parseInt(restTime / (60 * 60 * 1000) % 24)
	const minu = parseInt(restTime / (60 * 1000) % 60)
	const sec = parseInt(restTime / 1000 % 60)

	let time = {
		time: parseInt(restTime),//剩余秒数
		day,
		hour,
		minu,
		sec
	}
	return time
}